<tagLib name="html" />
<include file="../Public/header" />
<div id="wrap"> <include file="../Public/top" />
  <div id="content">
    <div class="mainarea">
      <div class="maininner">
        <div class="bdrcontent">
          <form id="phpform" method="post" action="__URL__/update" onsubmit="return $.formValidator.pageIsValid('1')">
          <input type="hidden" name="id" value="{$vo.id}" />
          <input type="hidden" name="nid" value="{$vo.nid}" />
            <table width="100%" cellpadding="0" cellspacing="0" class="formtable">
              <tr>
                <td width="100">页面标题：</td>
                <td><input name="title" type="text" size="40" id="title" value="{$vo.title}" /></td>
              </tr>
              <tr>
                <td width="100">描述：</td>
                <td><input name="description" type="text" size="40" id="description" value="{$vo.description}"  /></td>
              </tr>
              <tr>
                <td width="100">关键词：</td>
                <td><input name="keywords" type="text" size="40" id="keywords" value="{$vo.keywords}" /></td>
              </tr>
              <tr>
                <td>页面内容：</td>
                <td><html:editor type="fckeditor"  id="editor" width="550px" height="245px" name="content" content="{$vo.content}"  />                  </td>
              </tr>
              <tr>
                <td>上传:</td>
                <td><iframe frameborder="0" width="100%" height="120px;" src="__APP__/Sysattach/upload/edit/editor" scrolling="No"></iframe></td>
              </tr>
              <tr>
                <td></td>
                <td><input type="submit" value="提交" class="button" /></td>
              </tr>
            </table>
          </form>
        </div>
        <br />
      </div>
    </div>
    <include file="../Public/menu" /> </div>
  <include file="../Public/footer" /> </div>
</body></html>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("#title").formValidator({onshow:"请输入页面标题",onfocus:"页面标题至少要输入2个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:4,onerror:"你输入的页面标题长度不正确,请确认!"});
    $("#description").formValidator({onshow:"请输入页面描述",onfocus:"页面描述至少要输入4个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:8,onerror:"你输入的页面描述长度不正确,请确认!"});
    $("#keywords").formValidator({onshow:"请输关键词",onfocus:"页面关键词至少要输入2个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:4,onerror:"你输入的页面关键词长度不正确,请确认!"});

//	$("#categoryID").formValidator({onshow:"请输入categoryID",onfocus:"categoryID至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的categoryID长度不正确,请确认"});
//	$("#downNum").formValidator({onshow:"请输入downNum",onfocus:"downNum至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的downNum长度不正确,请确认"});
//	$("#cTime").formValidator({onshow:"请输入cTime",onfocus:"cTime至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的cTime长度不正确,请确认"});
//	$("#os").formValidator({onshow:"请输入os",onfocus:"os至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的os长度不正确,请确认"});
//	$("#homePage").formValidator({onshow:"请输入homePage",onfocus:"homePage至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的homePage长度不正确,请确认"});
//	$("#size").formValidator({onshow:"请输入size",onfocus:"size至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的size长度不正确,请确认"});
//	$("#content1").formValidator({onshow:"请输入content",onfocus:"content至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的content长度不正确,请确认"});
});
</script>
